package com.example.takeaway.mapper;

import java.util.List;

import com.example.takeaway.entity.Orders;
import org.apache.ibatis.annotations.Mapper;

/**
 * ordersMapper接口
 * 
 * @author ruoyi
 * @date 2025-05-15
 */
@Mapper
public interface OrdersMapper 
{
    /**
     * 查询orders
     * 
     * @param orderid orders主键
     * @return orders
     */
    public Orders selectOrdersByOrderid(Long orderid);

    public Orders getOrdersByOrdersn(String ordersn);

    /**
     * 查询orders列表
     * 
     * @param orders orders
     * @return orders集合
     */
    public List<Orders> selectOrdersList(Orders orders);

    /**
     * 新增orders
     * 
     * @param orders orders
     * @return 结果
     */
    public int insertOrders(Orders orders);

    /**
     * 修改orders
     * 
     * @param orders orders
     * @return 结果
     */
    public int updateOrders(Orders orders);

    /**
     * 删除orders
     * 
     * @param orderid orders主键
     * @return 结果
     */
    public int deleteOrdersByOrderid(Long orderid);

    /**
     * 批量删除orders
     * 
     * @param orderids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrdersByOrderids(Long[] orderids);
}
